package com.lmt.ymcc.feignclient;

import com.lmt.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Description:
 * @Author: Amazing
 * @Date: 2022/8/14 15:46
 * @Version: 1.0
 */
@FeignClient(value = "service-course", fallbackFactory = CourseFeignFallbackFactory.class)
public interface CourseFeignClient {

    @RequestMapping(value="/courseUserLearn/checkUserLearn/{loginId}/{courseId}",method=RequestMethod.GET)
    JSONResult checkUserLearn(@PathVariable("loginId") Long loginId, @PathVariable("courseId") Long courseId);

    @RequestMapping(value = "/course/info/{courseIds}",method = RequestMethod.GET)
    JSONResult info(@PathVariable("courseIds") String courseIds);
}
